/**
 * Meituan.com Inc.
 * Copyright (c) 2010-2019 All Rights Reserved.
 */
package me.tuyou.jvm;

import java.util.LinkedList;
import java.util.List;

/**
 * gc收集器测试
 *
 * @author tuyou@meituan.com
 * @version v0.1 2019-03-07 3:51 PM tuyou Exp $$
 */
public class GCCollectorTest {
    public static void main(String[] args) throws InterruptedException {
        Thread.currentThread().setName("gc收集器");
        List<Integer> array = new LinkedList<>();
        for(int i = 0; i < 10000000; i++){
            array.add(i);
            Thread.sleep(1);
        }
    }
}